package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 请求参数限定
 * @author stone
 * @date 2021/12/30 15:27
 */
@Controller
@RequestMapping("param")
public class ParamController {

    //params → 多个值是and的关系，全都要
    @RequestMapping(value = "register",params = {"username","password"})
    @ResponseBody
    public String register() {
        return "register";
    }
}
